package com.tarena.lbs.business.dao.repository;

import com.tarena.lbs.base.protocol.pager.PageResult;
import com.tarena.lbs.business.pojo.query.StoreQuery;
import com.tarena.lbs.business.pojo.vo.StoreVO;
import com.tarena.lbs.business.pojo.param.StoreParam;
import com.tarena.lbs.business.pojo.po.StorePO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StoreRepository {

    PageResult<StoreVO> selectpageList(StoreQuery query);
    void save(StorePO storePO);

    List<StoreVO> findByBusinessId(Integer businessId);

    void updateStatus(StorePO storePO);

    StoreVO findById(Integer id);

    int selectByStoreName(String storeName);

    void delete(Integer id);

    void updateStore(StorePO storePO);
}
